-- GENERATED SPELL FOR [Gezzarak the Huntress] --


function spell0_23163(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(40434,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23163', 600, 1)
end

function spell1_23163(pUnit, Event) --@Warp,n/a--
pUnit:FullCastSpellOnTarget(40432,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23163', 2500, 1)
end

function spell2_23163(pUnit, Event) --@Warp Rift,n/a--
pUnit:FullCastSpellOnTarget(40433,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23163', 8000, 1)
end

function spell3_23163(pUnit, Event) --@Warped Armor,n/a--
pUnit:FullCastSpellOnTarget(40542,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23163', 10285, 1)
end

function Sorts_23163(pUnit, Event)
local choix_sorts_23163 = math.random(0, 3)
if choix_sorts_23163 == 0 then
pUnit:RegisterEvent('spell0_23163', 1, 1)
end
if choix_sorts_23163 == 1 then
pUnit:RegisterEvent('spell1_23163', 1, 1)
end
if choix_sorts_23163 == 2 then
pUnit:RegisterEvent('spell2_23163', 1, 1)
end
if choix_sorts_23163 == 3 then
pUnit:RegisterEvent('spell3_23163', 1, 1)
end
end

function mob23163_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23163', math.random(1500, 3000), 1)
end

function mob23163_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23163_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23163_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23163, 1, 'mob23163_Action')
RegisterUnitEvent(23163, 2, 'mob23163_Leave')
RegisterUnitEvent(23163, 3, 'mob23163_Kill')
RegisterUnitEvent(23163, 4, 'mob23163_Die')
